package com.yanqu.road.server.cmd.mogulbirthday;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.bossbirthday.MogulBirthdayProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.mogulbirthday.MogulBirthdayMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_MOGUL_BIRTHDAY_USER_GET_REWARD, desc = "生辰收礼")
public class CrossMogulBirthdayUserGetRewardCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

        MogulBirthdayProto.CrossMogulBirthdayUserGetRewardReqMsg reqMsg = MogulBirthdayProto.CrossMogulBirthdayUserGetRewardReqMsg.parseFrom(packet.getBytes());
        MogulBirthdayMgr.getMyReward(serverId, packet.getPlayerId(), reqMsg.getToday());

    }

    @Override
    public void sendData() {

    }
}
